//
//  GetColor.m
//  Audit
//
//  Created by fenggu07 on 15/3/13.
//  Copyright (c) 2015年 cc. All rights reserved.
//

#import "GetColor.h"

@implementation GetColor

+(UIColor *)getWeightColor:(NSString *)weightDesc
{
    if ([weightDesc isEqualToString:@"A+"]) {
        return [UIColor colorWithRed:1 green:0 blue:0 alpha:1];
    }
    else if ([weightDesc isEqualToString:@"A"]) {
        return [UIColor colorWithRed:1 green:128.f/255.f blue:128.f/255.f alpha:1];
    }
    else if ([weightDesc isEqualToString:@"B+"]) {
        return [UIColor colorWithRed:1 green:1 blue:0 alpha:1];
    }
    else if ([weightDesc isEqualToString:@"B"]) {
        return [UIColor colorWithRed:1 green:1 blue:128.f/255.f alpha:1];
    }
    else if ([weightDesc isEqualToString:@"C+"]) {
        return [UIColor colorWithRed:0 green:1 blue:0 alpha:1];
    }
    else if ([weightDesc isEqualToString:@"C"]) {
        return [UIColor colorWithRed:128.f/255.f green:1 blue:128.f/255.f alpha:1];
    }
    else
    {
        return [UIColor clearColor];
    }
}

@end
